<?php
require_once('lzu_op_fns.php');
if(session_status() == PHP_SESSION_NONE) {
    session_start();
}
if(!check_valid_user()) {
    do_html_header('错误: 未登录');
    header("refresh:3;url=login.php");
    echo '<h3>将在3秒后跳转至登录界面</h3><br>还未跳转? <a href="login.php">点我跳转</a>';
    exit;
}
do_html_header('个人中心');
$sno=$_SESSION['valid_user'];
$user_info=get_user_information($sno);
if($row=$user_info->fetch_array())
{
    echo "您的学号：".$row['sno']."<br>";
    echo "您的性别：".$row['sex']."<br>";
    echo "您的生日：".$row['birthday']."<br>";
    echo "您的电话：".$row['tel']."<br>";
    echo "您的QQ：".$row['qq']."<br>";
    echo "您的邮箱：".$row['email']."<br>";
    echo "<a href='change_personal_information_form.php'>修改个人信息</a><br>";
    echo "<a href=user_center.php>返回首页</a>";
}
do_html_footer();
?>